﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucGetAll.ascx.cs" Inherits="TTMarketing.UserControl.KhuyenMai.ucGetByCate" %>

            <asp:ObjectDataSource ID="odsNews" runat="server" SelectMethod="getByType" TypeName="TTBusiness.ClassDB.clsBSNews">
                <SelectParameters>
                    <asp:Parameter DefaultValue="12" Name="typeid" Type="Int32" />
                    <asp:Parameter DefaultValue="true" Name="status" Type="Boolean" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <div id="com-left">
                <div id="com-left-title">
                    Khuyến mãi</div>
                <div id="com-left-box">
                    <telerik:RadListView ID="RadListView1" runat="server" DataSourceID="odsNews" BorderWidth="0px"
                        ItemPlaceholderID="ph" AllowPaging="True" PageSize="15" Width="100%">
                        <LayoutTemplate>
                            <asp:PlaceHolder runat="server" ID="ph" />
                        </LayoutTemplate>
                        <ItemTemplate>
                            <div id="com-left-box-item">
                                <div id="com-left-box-item-img">
                                <img src='<%# "Image/Upload/" +Eval("Image") %>'>
                                     </div>
                                    <div id="com-left-box-item-content">
                                        <div id="com-left-box-item-content-title">
                                            <a href='<%# "/khuyen-mai.aspx?id="+Eval("ID") %>'>
                                                <%# Eval("Title") %>
                                            </a>
                                        </div>
                                        <div id="com-left-box-item-content-quote" class="ie6fix">
                                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("Summary") %>'></asp:Label></div>
                                    </div>
                               
                            </div>
                        </ItemTemplate>
                        <EmptyDataTemplate>
                            <div class="RadListView RadListView_Default">
                                <div class="rlvEmpty">
                                    Dữ liệu đang cập nhật</div>
                            </div>
                        </EmptyDataTemplate>
                    </telerik:RadListView>
                </div>
            </div>
        
            <div id="pageing">
                <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="RadListView1"
                   BackColor="Transparent"  BorderStyle="None" Width="100%">
                    <Fields>
                        <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                        <telerik:RadDataPagerButtonField FieldType="Numeric" />
                        <telerik:RadDataPagerButtonField FieldType="NextLast" />
                    </Fields>
                </telerik:RadDataPager>
            </div>
        